using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
namespace TVSGPP.sys
{
	public class frmSlideShow : Form
	{
		public bool OKSelect = false;
		private IContainer components = null;
		private Label label1;
		private Button btnOk;
		private Button btnClose;
		public NumericUpDown nmUSecond;
		public CheckBox ckbSaveData;
		public RadioButton rdbUp;
		public RadioButton rdbDown;
		public frmSlideShow()
		{
			this.InitializeComponent();
		}
		private void btnClose_Click(object sender, EventArgs e)
		{
			this.OKSelect = false;
			base.Close();
		}
		private void btnOk_Click(object sender, EventArgs e)
		{
			this.OKSelect = true;
			base.Close();
		}
		private void frmSlideShow_KeyDown(object sender, KeyEventArgs e)
		{
			if (e.KeyData == Keys.Escape)
			{
				this.btnClose.PerformClick();
			}
		}
		protected override void Dispose(bool disposing)
		{
			if (disposing && this.components != null)
			{
				this.components.Dispose();
			}
			base.Dispose(disposing);
		}
		private void InitializeComponent()
		{
			this.label1 = new Label();
			this.nmUSecond = new NumericUpDown();
			this.ckbSaveData = new CheckBox();
			this.btnOk = new Button();
			this.btnClose = new Button();
			this.rdbUp = new RadioButton();
			this.rdbDown = new RadioButton();
			((ISupportInitialize)this.nmUSecond).BeginInit();
			base.SuspendLayout();
			this.label1.AutoSize = true;
			this.label1.Location = new Point(29, 19);
			this.label1.Name = "label1";
			this.label1.Size = new Size(128, 15);
			this.label1.TabIndex = 0;
			this.label1.Text = "Thời gian xem [ giây ] :";
			this.nmUSecond.Location = new Point(161, 16);
			//NumericUpDown arg_F9_0 = this.nmUSecond;
			int[] array = new int[4];
			array[0] = 3;
            nmUSecond.Minimum = new decimal(array);
			this.nmUSecond.Name = "nmUSecond";
			this.nmUSecond.Size = new Size(44, 21);
			this.nmUSecond.TabIndex = 1;
			this.nmUSecond.TextAlign = HorizontalAlignment.Center;
			//NumericUpDown arg_156_0 = this.nmUSecond;
            //array = new int[4];
            //array[0] = 3;
            nmUSecond.Value = new decimal(array);
			this.ckbSaveData.AutoSize = true;
			this.ckbSaveData.Location = new Point(218, 18);
			this.ckbSaveData.Name = "ckbSaveData";
			this.ckbSaveData.Size = new Size(133, 19);
			this.ckbSaveData.TabIndex = 2;
			this.ckbSaveData.Text = "Cập nhật lại dữ liệu";
			this.ckbSaveData.UseVisualStyleBackColor = true;
			this.btnOk.Cursor = Cursors.Hand;
			this.btnOk.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnOk.Location = new Point(173, 91);
			this.btnOk.Name = "btnOk";
			this.btnOk.Size = new Size(90, 30);
			this.btnOk.TabIndex = 3;
			this.btnOk.Text = "Ghi nhận";
			this.btnOk.UseVisualStyleBackColor = true;
			this.btnOk.Click += new EventHandler(this.btnOk_Click);
			this.btnClose.Cursor = Cursors.Hand;
			this.btnClose.Font = new Font("Arial", 9f, FontStyle.Bold, GraphicsUnit.Point, 163);
			this.btnClose.Location = new Point(266, 91);
			this.btnClose.Name = "btnClose";
			this.btnClose.Size = new Size(90, 30);
			this.btnClose.TabIndex = 4;
			this.btnClose.Text = "Thoát [ ESC ]";
			this.btnClose.UseVisualStyleBackColor = true;
			this.btnClose.Click += new EventHandler(this.btnClose_Click);
			this.rdbUp.AutoSize = true;
			this.rdbUp.Checked = true;
			this.rdbUp.Location = new Point(32, 53);
			this.rdbUp.Name = "rdbUp";
			this.rdbUp.Size = new Size(110, 19);
			this.rdbUp.TabIndex = 5;
			this.rdbUp.TabStop = true;
			this.rdbUp.Text = "Xem trên xuống";
			this.rdbUp.UseVisualStyleBackColor = true;
			this.rdbDown.AutoSize = true;
			this.rdbDown.Location = new Point(161, 53);
			this.rdbDown.Name = "rdbDown";
			this.rdbDown.Size = new Size(99, 19);
			this.rdbDown.TabIndex = 6;
			this.rdbDown.Text = "Xem dưới lên";
			this.rdbDown.UseVisualStyleBackColor = true;
			base.AutoScaleDimensions = new SizeF(7f, 15f);
			//base.AutoScaleMode = AutoScaleMode.Font;
			base.ClientSize = new Size(363, 128);
			base.Controls.Add(this.rdbDown);
			base.Controls.Add(this.rdbUp);
			base.Controls.Add(this.btnClose);
			base.Controls.Add(this.btnOk);
			base.Controls.Add(this.ckbSaveData);
			base.Controls.Add(this.nmUSecond);
			base.Controls.Add(this.label1);
			this.Font = new Font("Arial", 9f, FontStyle.Regular, GraphicsUnit.Point, 163);
			//base.Icon = (Icon)componentResourceManager.GetObject("$this.Icon");
			base.KeyPreview = true;
			base.Name = "frmSlideShow";
			base.ShowInTaskbar = false;
			base.StartPosition = FormStartPosition.CenterScreen;
			this.Text = " ..: Slide Show";
			base.KeyDown += new KeyEventHandler(this.frmSlideShow_KeyDown);
			((ISupportInitialize)this.nmUSecond).EndInit();
			base.ResumeLayout(false);
			base.PerformLayout();
		}
	}
}
